<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="pagamentos.aspx.cs" Inherits="area_admin_equipamentos"  EnableEventValidation="false"%>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel1" runat="server">
        <asp:GridView ID="grdPagamentos" runat="server" AutoGenerateColumns="False" DataKeyNames="idPagamento" 
            onselectedindexchanged="grdSituacoes_SelectedIndexChanged" 
            EnableTheming="True" Width="100%" 
            EmptyDataText="Nenhum pagamento registrado." SkinID="q">
            <Columns>
                <asp:TemplateField HeaderText="Todos os pagamentos" InsertVisible="False" 
                    SortExpression="idSituacao">
                    <EditItemTemplate>
                        <table style="width: 100%">
                            <tr>
                                <td ID="20">
                                    <asp:Panel ID="pnlEdit" runat="server" SkinID="Insercao" Width="100%">
                                        <table style="padding: 3px; width: 100%">
                                            <tr>
                                                <td class="titulo3">
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                        ControlToValidate="txtNome" ErrorMessage="*" Font-Names="Vrinda" 
                                                        Font-Size="16pt" ForeColor="#FF6699" SetFocusOnError="True" 
                                                        ValidationGroup="insercao">*</asp:RequiredFieldValidator>
                                                    <asp:TextBox ID="txtNome" runat="server" Text='<%# Bind("Nome") %>' 
                                                        Width="300px"></asp:TextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td ID="21" align="center">
                                    <asp:Button ID="btnSalvar" runat="server" CommandName="Update" Text="Salvar" 
                                        Width="100px" TabIndex="1" />
                                    &nbsp;<asp:Button ID="btnSalvar0" runat="server" CommandName="Cancel" 
                                        Text="Cancelar" Width="100px" TabIndex="2" />
                                </td>
                            </tr>
                        </table>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <table style="width: 100%">
                            <tr>
                                <td ID="2">
                                    <asp:Label ID="Label1" runat="server" Font-Bold="True" 
                                        Text='<%# Eval("dtAbertura") %>' CssClass="titulo3"></asp:Label>
                                    <br />
                                </td>
                                <td valign="top" width="80px">
                                    <asp:Button ID="Button1" runat="server" CommandName="Select" 
                                        Text="Emitir Comprovante" />
                                    <br />
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </asp:Panel>
</asp:Content>

